package han.entity;

/**
 * @author: Han
 * @date: 2018/7/10 10:07
 * @dscription: 字体对象
 */
public class FontEntity {
    private String name;
    private int size;
    private int[] style;
    private String color;

    public FontEntity(String name, int size, int[] style, String color) {
        this.name = name;
        this.size = size;
        this.style = style;
        this.color = color;
    }

    public FontEntity() {
        name = "宋体";
        size = 10;
        style = new int[]{0, 0, 0};
        color = "000000";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int[] getStyle() {
        return style;
    }

    public void setStyle(int[] style) {
        this.style = style;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "[\\\"font\\\",{\\\"name\\\":\\\"" + name + "\\\",\\\"size\\\":" + size + ",\\\"style\\\":"
                + "[" + style[0] + "," + style[1] + "," + style[2] + "]" + ",\\\"color\\\":\\\"" + color + "\\\"}]";
    }
}
